<?php
/**
 * Created by PhpStorm.
 * User: qttx
 * Date: 2019/5/30
 * Time: 13:56
 */
namespace app\api\controller;


use app\api\model\OilModel;

class Oilservice extends BaseController
{
    public function __construct()
    {
        parent::__construct();
        $this->oilservice = new OilModel();
    }

    /**加油卡充值--添加**/
    public function oilservice_add()
    {
        $add['uid'] = $this->uid;
		//$add['uid'] = request()->post('uid');
		$add['phone'] = request()->post('phone');
        $add['money'] = request()->post('money');
        $add['platform'] = request()->post('platform');
        $add['card'] = request()->post('card');
		$add['service_money'] = request()->post('service_money');
        $add['createtime'] = time();
        $oilservice_add = $this->oilservice->oilservice_add($add);

        if($oilservice_add)
        {
            AjaxReturn('1','成功');
        }else{
            AjaxReturn('0','失败');
        }
    }
}